const initState = {
  //初始化状态
};

//
const token = (state = initState, action) => {
  switch (action.type) {
    case "SET_TOKEN":
      return {
        ...state,
        token: action.data,
      };
    default:
      return state;
  }
};

export default token;
